<?php $this->load->view(TEMPLATE_NAME.'/admin/header');?>
<?php $this->load->view(TEMPLATE_NAME.'/admin/side_left');?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery-1.4.2.js"></script>
<div class="page noright adminpage adminuser">
    
    <?php $this->load->view(TEMPLATE_NAME.'/admin/profile/profile_tabs');?>
            <h2 class="no">Content</h2>
            
            <p class="black f13"><strong>All content posted by this user. Crime Alerts, News, Discussions, Questions etc</strong></p>
            
            <hr />
            <form class="formstep formp"> 
            <?php 
            if (is_array($result)):    
                foreach($result as $row):?>
                <p><strong>
				<?php if ($row['type_of_content'] == 'News'):?>
					<a href="<?php echo site_url().'admin/news/visibility/'.$row['id'];?>"><?php echo $row['article_heading'] == '' ? 'No heading' : $row['article_heading'];?></a>
				<?php elseif ($row['type_of_content'] == 'Crime Report'):?>
					<a href="<?php echo site_url().'admin/crime_report/edit/'.$row['id'];?>"><?php echo $row['article_heading'] == '' ? 'No heading' : $row['article_heading'];?></a>
				<?php elseif ($row['type_of_content'] == 'Alerts'):?>
					<a href="<?php echo site_url().'network/read_alert/'.$row['additional'].'/'.$row['id'];?>"><?php echo $row['article_heading'] == '' ? 'No heading' : $row['article_heading'];?></a>
				<?php elseif ($row['type_of_content'] == 'Alerts Comment'):?>
					<a href="<?php echo site_url().'network/read_alert/'.$row['additional'].'/'.$row['id'];?>"><?php echo $row['article_heading'] == '' ? 'No heading' : $row['article_heading'];?></a>
				<?php elseif ($row['type_of_content'] == 'News Comment'):?>
					<a href="<?php echo site_url().'admin/news/visibility/'.$row['additional'];?>"><?php echo $row['article_heading'] == '' ? 'No heading' : $row['article_heading'];?></a>
				<?php endif;?>
				
				</strong> <span class="pright">
                <strong><?php echo $row['type_of_content']?></strong> | <?php echo $row['posted_date']?></span></p>
            <?php endforeach;
            endif;
            ?>
            </form>
</div><!-- page -->
<?php $this->load->view(TEMPLATE_NAME.'/admin/footer');?>